Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: clicking back doesn't re query search #54

Merged
merged 2 commits into from
Jul 6, 2024

Conversation

aamirazad
Copy link
Owner

@aamirazad aamirazad commented Jun 29, 2024

TL;DR

Fixes a bug where when you would exit a modal, it would serach for the query below the modal even though nothing changed.

What changed?

I use prevent default on the button to only make it go browser back, not rerender after clicking.

Why?

This gives a better user experience and less load on the server.

Copy link

vercel bot commented Jun 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
homelab-connector ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 6, 2024 5:18pm

@github-actions github-actions bot added the fix Something isn't working label Jun 29, 2024
Copy link
Owner Author

aamirazad commented Jul 6, 2024

Merge activity

  • Jul 6, 1:12 PM EDT: @aamirazad started a stack merge that includes this pull request via Graphite.
  • Jul 6, 1:18 PM EDT: Graphite rebased this pull request as part of a merge.
  • Jul 6, 1:19 PM EDT: @aamirazad merged this pull request with Graphite.

@aamirazad aamirazad force-pushed the 06-29-feat_show_a_fun_fact_while_pdf_is_loading branch from a4acb5a to 4c72edd Compare July 6, 2024 17:14
Base automatically changed from 06-29-feat_show_a_fun_fact_while_pdf_is_loading to main July 6, 2024 17:17
@aamirazad aamirazad force-pushed the 06-29-fix_clicking_back_doesn_t_re_query_search branch from e5a70b1 to 344385a Compare July 6, 2024 17:17
@aamirazad aamirazad merged commit 25f437c into main Jul 6, 2024
5 checks passed
@aamirazad aamirazad deleted the 06-29-fix_clicking_back_doesn_t_re_query_search branch July 6, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Something isn't working patch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant